using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnemyStateInGround : EnemyStateBase
{
    public EnemyStateInGround(Enemy enemy, StateMachine stateMachine, string animName) : base(enemy, stateMachine, animName)
    {

    }
    public override void Enter()
    {
        base.Enter();
    }
    public override void Update()
    {
        base.Update();
        if (enemy.PlayerDetected())
            stateMachine.ChangeState(enemy.battleState);
    }
    
}
